#include <iostream>
using namespace std;


// 多继承语法

// 父类
class Base1
{
public:
    Base1()
    {
        m_A = 100;
    }
    int m_A;
};

class Base2
{
public:
    Base2()
    {
        m_B = 200;
    }
    int m_B;
};

class Son : public Base1, public Base2
{
public:
    Son()
    {
        m_C = 300;
        m_D = 400;
    }    
    int m_C;
    int m_D;
};

void test01()
{
    Son s;
    cout << "sizeif Son" << sizeof(Son) << endl;
}

int main()
{
    test01();
    // test02();
    // cout << "hello" << endl;
    return 0;
}